package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_classify"
    ,catalog="zutuan_prot"
)
public class JujuClassify  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuClassify";
	public static final String TABLE_NAME="juju_classify";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_name = "name"; 
	public static final String P_description = "description"; 
	public static final String P_deleflag = "deleflag"; 
	public static final String P_ishot = "ishot"; 

     private String id;
     private String name;
     private String description;
     private Integer deleflag;
     private Integer ishot;

    public JujuClassify() {
    }
	
    public JujuClassify(String id) {
        this.id = id;
    }
    public JujuClassify(String id, String name, String description, Integer deleflag, Integer ishot) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.deleflag = deleflag;
        this.ishot = ishot;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="NAME", length=36)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="DESCRIPTION", length=30)
    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    @Column(name="DELEFLAG")
    public Integer getDeleflag() {
        return this.deleflag;
    }
    
    public void setDeleflag(Integer deleflag) {
        this.deleflag = deleflag;
    }
    
    @Column(name="ishot")
    public Integer getIshot() {
        return this.ishot;
    }
    
    public void setIshot(Integer ishot) {
        this.ishot = ishot;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


